package apps;

public class Vector
{
    private double x;
    private double y;

    public Vector(double x, double y)
    {
	this.x = x;
	this.y = y;
    }

    public String toString()
    {
	return "(" + this.x + ", " + this.y + ")";
    }

    public boolean equals(Object o)
    {
	if (o instanceof Vector)
	{
	    Vector other = (Vector) o;
	    return this.x == other.x && this.y == other.y;
	} else
	    return false;
    }
}
